package com.yutian.example.demo.service.forum.param.req;

import com.yutian.example.demo.common.exceptions.MyParamException;
import com.yutian.example.demo.common.utils.AssertParamUtil;
import com.yutian.example.demo.common.vo.IBaseRequest;
import com.yutian.example.demo.common.vo.PageBaseRequest;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

@Data
public class ForumPageTopicReq extends PageBaseRequest {
    private String title;

    private Integer importance;

    private String type;

    @Override
    public void check() throws MyParamException {
        super.check();
        title = StringUtils.trimToNull(title);
        // AssertParamUtil.notBlank(title, "title.is.blank");
    }
}
